package com.zqwh.yj.sdk.obj;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by eason.yang on 2019/6/6.
 */

public class VeinUser implements Parcelable {
    private long veinId;
    private String userInfo;
    private String temp;
    private long veinNo;
    private String userId;

    public VeinUser(long veinId, String userInfo) {
        this.veinId = veinId;
        this.userInfo = userInfo;
    }

    public VeinUser(long veinId, String userInfo, String temp) {
        this.veinId = veinId;
        this.userInfo = userInfo;
        this.temp = temp;
    }

    public VeinUser(long veinId, String userInfo, String temp, String userId) {
        this.veinId = veinId;
        this.userInfo = userInfo;
        this.temp = temp;
        this.userId = userId;
    }

    public VeinUser(long veinId, String userInfo, String temp, long veinNo, String userId) {
        this.veinId = veinId;
        this.userInfo = userInfo;
        this.temp = temp;
        this.veinNo = veinNo;
        this.userId = userId;
    }

    protected VeinUser(Parcel in) {
        veinId = in.readLong();
        userInfo = in.readString();
        temp = in.readString();
    }

    public static final Creator<VeinUser> CREATOR = new Creator<VeinUser>() {
        @Override
        public VeinUser createFromParcel(Parcel in) {
            return new VeinUser(in);
        }

        @Override
        public VeinUser[] newArray(int size) {
            return new VeinUser[size];
        }
    };


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeLong(veinId);
        dest.writeString(userInfo);
        dest.writeString(temp);
    }

    public long getVeinId() {
        return veinId;
    }

    public void setVeinId(long veinId) {
        this.veinId = veinId;
    }

    public String getUserInfo() {
        return userInfo;
    }

    public void setUserInfo(String userInfo) {
        this.userInfo = userInfo;
    }

    public String getTemp() {
        return temp;
    }

    public void setTemp(String temp) {
        this.temp = temp;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public long getVeinNo() {
        return veinNo;
    }

    public void setVeinNo(long veinNo) {
        this.veinNo = veinNo;
    }

    @Override
    public String toString() {
        return "VeinUser{" +
                "veinId=" + veinId +
                ", userInfo='" + userInfo + '\'' +
                ", temp='" + temp + '\'' +
                ", veinNo=" + veinNo +
                ", userId='" + userId + '\'' +
                '}';
    }
}
